#include "kppch.h"
#include "sampler.h"

namespace kp {

	CameraSample Sampler::getCameraSample(const Point2i& pRaster)
	{
		CameraSample casample;
		casample.pFilm = Point2f((float)pRaster.w, (float)pRaster.h) + get2D();
		casample.pLens = get2D();
		casample.time = get1D();
		return casample;
	}

}